package com.alibaba.citrus.ots.platform.enhance.repository;

import com.alibaba.lattice2.epoch.sdk.model.Result;
import com.epoch.app.otsplatformenhance.inventoryallotline.model.InventoryAllotLine;
import com.epoch.app.otsplatformenhance.model.dto.InventoryAllotLineLoadListRequest;
import com.epoch.app.otsplatformenhance.model.dto.InventoryAllotLineSDO;
import com.epoch.app.otsplatformenhance.model.dto.UpdateAllotLineRequest;

import java.util.List;

public interface InventoryAllotLineRepository {

    String create(InventoryAllotLineSDO inventoryAllotLineSDO);

    Long update(InventoryAllotLineSDO inventoryAllotLineSDO);

    Result<List<InventoryAllotLine>> queryAllotList(InventoryAllotLineLoadListRequest queryAllotRequest);


    InventoryAllotLineSDO queryById(String id);

    Integer updateRemainingQuantity(UpdateAllotLineRequest requet);

}
